package com.example.graduation.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * ProjectName graduation
 *
 * @author xieyucan
 * <br>CreateDate 2022/2/14 16:02
 */
@Data
public class UserDto implements Serializable {

    private static final long serialVersionUID = -8686278725589011570L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "长期授权字符串")
    private String openId;

    @ApiModelProperty(value = "昵称")
    private String nickname;

    @ApiModelProperty(value = "头像网址")
    private String photo;

    @ApiModelProperty(value = "姓名")
    private String userName;

    @ApiModelProperty(value = "性别")
    private String sex;

    @ApiModelProperty(value = "手机号码")
    private String tel;

    @ApiModelProperty(value = "邮箱")
    private String email;

    @ApiModelProperty(value = "角色")
    private String role;

    @ApiModelProperty(value = "注册时间")
    private Long createTime;

    @ApiModelProperty(value = "最后登录时间")
    private Long lastLogin;

    @ApiModelProperty(value = "是否是超级管理员")
    private Boolean root;

    @ApiModelProperty(value = "用户状态 0正常 1店铺休息 2店铺打烊 3店铺封号3天 4店铺关闭休整")
    private Boolean status;

    @ApiModelProperty(value = "住址")
    private String address;

    @ApiModelProperty(value = "积分")
    private int points;

}
